<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<?php
function stage2check(){
    
    $dbcheck = getConnection();
    
    $sql = "SELECT geistPASS FROM Geist WHERE geistUSER = 'admin'";
    echo 'passed';
    foreach ($dbcheck->query($sql) as $row)
        {
        if ($row['geistPASS'] == 'admin'){
            return true;
        }
}
return false;

    //return true;
}
?>